#pragma once

class WzHeader
{
public:
	std::string Ident;
	std::string Copyright;
	ULONG FSize;
	UINT FStart;

	void RecalculateFileStart()
	{
		FStart = (UINT)(Ident.length() + sizeof(ULONG) + sizeof(UINT) + Copyright.length() + 1);
	}

	static WzHeader* GetDefault()
	{
		WzHeader* header = new WzHeader();
		header->Ident = "PKG1";
		header->Copyright = "Package file v1.0 Copyright 2002 Wizet, ZMS";
		header->FStart = 60;
		header->FSize = 0;
		return header;
	}
};
